<?php

namespace app\api\controller\mox;

use app\common\controller\Api;
use app\admin\model\mox\Heritage as HeritageModel;

/**
 * 消息提示
 */
class Heritage extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function index()
    {
        $model = new HeritageModel();
        $row = $model->with(['videofilename', 'attachmentfilename'])
            ->where($model->getTable() . '.id', 1)->find();
        $this->success('请求成功', $row);
    }
}
